solving equations using the distributive property